<span id="message-container">
    {if is_array($message)}
    <div class="message {if $message.status}info{else}error{/if}">
        {$message.contents}
    </div>
    {/if}
</span>
